//
//  DropDetailListTableViewCell.m
//  MobileOffice
//
//  Created by jjkj on 16/11/8.
//  Copyright © 2016年 liaoningjujin. All rights reserved.
//

#import "DropDetailListTableViewCell.h"

@implementation DropDetailListTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.userInteractionEnabled=YES;
        _myTitleLabel=[MyControl creatLabelWithFrame:CGRectMake(13, 10, 100, 30) text:@""];
        //_myTitleLabel.textAlignment=NSTextAlignmentCenter;
        _myTitleLabel.layer.masksToBounds=YES;
        _myTitleLabel.layer.cornerRadius=5;
        [self.contentView addSubview:_myTitleLabel];
        
        _textField=[[CustomField alloc]initWithFrame:CGRectMake(_myTitleLabel.x+_myTitleLabel.width+50, 10, 40, 30)];
        _textField.textAlignment=NSTextAlignmentCenter;
        _textField.textColor=[UIColor blackColor];
        _textField.keyboardType=UIKeyboardTypeDecimalPad;
        //_messageLabel.font=FONT_17;
        [self.contentView addSubview:_textField];
        _messageLabel=[MyControl creatLabelWithFrame:CGRectMake(_textField.x+_textField.width, 15, 20, 20) text:@"天"];
        _messageLabel.textColor=[UIColor blackColor];
        //_messageLabel.font=FONT_17;
        [self.contentView addSubview:_messageLabel];
        
        _lineLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 49, IPHONE_WIDTH, 1)];
        _lineLabel.backgroundColor=BACKCOLOR_GRAY;
        [self.contentView addSubview:_lineLabel];

        self.contentView.width=IPHONE_WIDTH;
    }
    return self;
}

- (void)setCustomFieldColor:(UIColor *)color{
    _textField.color=color;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
